<?php
return array(
	'class' => 'EditAction',
	'cascade' => array('travelers'),
	'formView' => array(
		'fields' => array(
			'baseInfo' => array(
				'id' => false,
				'object_type' => false,
				'worker_id' => false,
				'status' => false,
				'pay_type' => array('dropDownList',Yii::app()->enum->options('order.payType')),
				'create_time'=> false,
				'update_time'=> false,
				'remark' => false,
				'_with' => array(
					'receiverInfo.receiver',
					'receiverInfo.email',
					'receiverInfo.mobile',
					'receiverInfo.province' => array(
						'class' => 'LinkageField',
						'name' => 'district',
						'fields' => array(
							array('receiverInfo.province', 1),
							array('receiverInfo.city', 2),
							array('receiverInfo.district', 3)
						)
					),
					'items.item_num',
					'remark' => array('class' => 'RichtextField', 'params' => array('htmlOptions'=>array('style'=>'width:500px;height:200px;'))),
				),
			),
			'travelers' => array(
				'id' => false,
				'order_id' => false,
			),
		)
	),

	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);
